project(dogtag)

# compute certificate system name
set(CERTIFICATE_SYSTEM_THEME "Dogtag")
if ("${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}" STREQUAL "10.5")
    set(CERTIFICATE_SYSTEM_VERSION "9")
elseif ("${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}" STREQUAL "10.6")
    set(CERTIFICATE_SYSTEM_VERSION "10")
else()
    set(CERTIFICATE_SYSTEM_VERSION "")
endif()
set(CERTIFICATE_SYSTEM_NAME "${CERTIFICATE_SYSTEM_THEME} Certificate System ${CERTIFICATE_SYSTEM_VERSION}")

if(WITH_SERVER)
    add_subdirectory(common-ui)
endif(WITH_SERVER)

if(WITH_CONSOLE)
    add_subdirectory(console-ui)
endif(WITH_CONSOLE)
